package com.gccloud.design.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author guo.wang
 * @date 2021-07-02
 */
@Data
@Accessors(chain = true)
@TableName("sd_api_call_rule")
@ApiModel("调用机制实体类")
public class SdApiCallRuleEntity implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;

    /**
     * cfs api编码
     */
    @ApiModelProperty("cfs api编码")
    private Long apiId;

    /**
     * rfs api编码
     */
    @ApiModelProperty("rfs api编码")
    private Integer callTimeOut;

    /**
     * try_interval
     */
    @ApiModelProperty("try_interval")
    private Integer tryInterval;

    /**
     * 0是、1否
     */
    @ApiModelProperty("0是、1否")
    private String isTry;

    /**
     * try_count
     */
    @ApiModelProperty("try_count")
    private Integer tryCount;

    /**
     * 0是、1否
     */
    @ApiModelProperty("0是、1否")
    private String isIdempotent;

    /**
     * 业务字典类型request_type（get、post、put、patch、delete）
     */
    @ApiModelProperty("业务字典类型request_type（get、post、put、patch、delete）")
    private String requestType;

    /**
     * sharding_id
     */
    @ApiModelProperty("sharding_id")
    private Integer shardingId;

}
